Skip to main content

SwaggerClient::NetApi

All URIs are relative to //api.estuary.tech/

MethodHTTP requestDescription
admin_miners_getGET /admin/miners/Get all miners
public_miners_failures_miner_getGET /public/miners/failures/{miner}Get all miners
public_net_addrs_getGET /public/net/addrsNet Addrs
public_net_peers_getGET /public/net/peersNet Peers

admin_miners_get

ApiMinerResp admin_miners_get

Get all miners

This endpoint returns all miners. Note: value may be cached

Example

# load the gem
require 'swagger_client'
# setup authorization
SwaggerClient.configure do |config|
# Configure API key authorization: bearerAuth
config.api_key['Authorization'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['Authorization'] = 'Bearer'
end

api_instance = SwaggerClient::NetApi.new

begin
#Get all miners
result = api_instance.admin_miners_get
p result
rescue SwaggerClient::ApiError => e
puts "Exception when calling NetApi->admin_miners_get: #{e}"
end

Parameters

This endpoint does not need any parameter.

Return type

ApiMinerResp

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

public_miners_failures_miner_get

String public_miners_failures_miner_get(miner)

Get all miners

This endpoint returns all miners

Example

# load the gem
require 'swagger_client'
# setup authorization
SwaggerClient.configure do |config|
# Configure API key authorization: bearerAuth
config.api_key['Authorization'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['Authorization'] = 'Bearer'
end

api_instance = SwaggerClient::NetApi.new
miner = 'miner_example' # String | Filter by miner


begin
#Get all miners
result = api_instance.public_miners_failures_miner_get(miner)
p result
rescue SwaggerClient::ApiError => e
puts "Exception when calling NetApi->public_miners_failures_miner_get: #{e}"
end

Parameters

NameTypeDescriptionNotes
minerStringFilter by miner

Return type

String

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

public_net_addrs_get

Array<String> public_net_addrs_get

Net Addrs

This endpoint is used to get net addrs

Example

# load the gem
require 'swagger_client'
# setup authorization
SwaggerClient.configure do |config|
# Configure API key authorization: bearerAuth
config.api_key['Authorization'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['Authorization'] = 'Bearer'
end

api_instance = SwaggerClient::NetApi.new

begin
#Net Addrs
result = api_instance.public_net_addrs_get
p result
rescue SwaggerClient::ApiError => e
puts "Exception when calling NetApi->public_net_addrs_get: #{e}"
end

Parameters

This endpoint does not need any parameter.

Return type

Array<String>

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

public_net_peers_get

Array<String> public_net_peers_get

Net Peers

This endpoint is used to get net peers

Example

# load the gem
require 'swagger_client'
# setup authorization
SwaggerClient.configure do |config|
# Configure API key authorization: bearerAuth
config.api_key['Authorization'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['Authorization'] = 'Bearer'
end

api_instance = SwaggerClient::NetApi.new

begin
#Net Peers
result = api_instance.public_net_peers_get
p result
rescue SwaggerClient::ApiError => e
puts "Exception when calling NetApi->public_net_peers_get: #{e}"
end

Parameters

This endpoint does not need any parameter.

Return type

Array<String>

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json